<%-- 
    Document   : city
    Created on : Sep 22, 2011, 4:06:12 PM
    Author     : Yudi Retanto
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<jsp:include page="/header.jsp"></jsp:include>
<h1>
    Pilih Kota Keberangkatan
</h1>
<table>
    <tr>
        <th class="td-no">No</th>
        <th>Nama Kota</th>
    </tr>
    <c:forEach items="${cities}" var="city">
        <c:set var="ordinal" value="${ordinal + 1}" />
        <tr id="record-${city.getId()}">
            <td>${ordinal}</td>
            <td><a href="shuttles?action=view&city=${city.getId()}">${city.getName()}</a></td>
        </tr>
    </c:forEach>
</table>
    <hr>
<a href="shuttles?action=view_book">View Booking List</a>
<jsp:include page="/footer.jsp"></jsp:include>
